package org.springframework;

import org.springframework.bean.MyBean;
import org.springframework.config.SpringConfig;
import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

public class AnnotationMain {
	public static void main(String[] args) {
		ApplicationContext context = new AnnotationConfigApplicationContext(SpringConfig.class);

		MyBean myBean = context.getBean(MyBean.class);

		String hello = myBean.hello("arong", 18);

		System.out.println(hello);

	}
}